<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	String returnPath =(String) request.getAttribute("returnPath");
	returnPath = returnPath == null ? "" : returnPath;
	String contextPath = request.getContextPath();
	Locale locale = request.getLocale();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="java.util.Locale"%>
<%@page import="com.zhangyj.LocalMessage"%>
<%@page import="com.zhangyj.util.Tools"%><html
	xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><%=LocalMessage.get(locale, "login.page")%></title>
<style type="text/css">
.text{
	width:150px;
}
#title{
	background:#0d4b89;
	vertical-align:middle;
	border-bottom:1px solid #B6B6F5;
	height:50px;
	font-size:30px;
	color:white;
	padding-top:15px;
	text-align: center;
}
#container{
	height:180px;
	width:240px;
	position:relative;
	top:25px;
	left:300px;
}
.btnsubmit{
	margin-top:5px;
	margin-left:15px;
	width:55px;
	background-color: #86B1CC;
	color:white;
	border: 1px solid #0d4b89;
	padding-top:2px;
	height:20px;
}
li{
	list-style-type:none;
}
</style>
</head>

<body onload="javascript:document.forms['loginform']['loginname'].focus();"style="font-family: 微软雅黑,黑体,fantasy,serif;font-size:11pt;">
<center>
<div id="loginpage"  style="border:1px solid #A9C1C1;display:none;position:relative;width:519px;height:293px;background:url('<%=contextPath%>/common/images/login.jpg') bottom no-repeat ;text-align: left">
<div id="title"><%=LocalMessage.get(locale, "welcome")%></div>
<div id="container">
<form action="<%=request.getContextPath() %>/login.do" name="loginform" method="post">
<%=com.zhangyj.entitis.SystemParam.getSystemParam(request).toInput() %>
<input type="hidden" name="returnPath" value="<%=returnPath %>"/>
   <ul>
   <li><span style="color:red"><%=Tools.getAttribute(request, "error", "")%></span></li>
    <li><%=LocalMessage.get(locale, "username")%>：<input tabindex="1" name="loginname" id="loginname" value="<%=Tools.getParameter(request, "loginname", "")%>"  style="width:103px;" /></li>
    <li><%=LocalMessage.get(locale, "password")%>：<input tabindex="2"  type="password" name="password" id="password" style="width:103px;" /></li>
    <li><%=LocalMessage.get(locale, "validatecode")%>：<input tabindex="3"  name="validatecode" id="validatecode" style="width:42px"/> <img align="absmiddle"
			src="<%=request.getContextPath()%>/vcode?r=<%=Math.random()%>"  style="width:58px;height:20px"/></li>
    <li><input tabindex="4" type="submit" class="btnsubmit" value="<%=LocalMessage.get(locale, "login.submit")%>" /> <input tabindex="5" class="btnsubmit" type="reset" 	value="<%=LocalMessage.get(locale, "reset")%>" /></li>
   </ul>
</form>
</div>

</div>
</center>
<script type="text/javascript">
function _load() {
	var ch = document.documentElement.clientHeight;
	var el = document.getElementById("loginpage");
	var top = (ch - 293)/2;
	if (top <= 0) {
		top = 20;
	}
	el.style.top = top + "px";
	el.style.display="block";
}
_load();
window.onresize =_load;
</script>
</body>

</html>
